<?php

/**
 * Created by Atom.
 * User: qiliping
 * Date: 2017/2/20
 * Time: 21:21
 */
class Class_plan_model extends CI_Model
{

  /**
   * 获取班级上课计划
   * @param  [type] $class_id [description]
   * @return [type]           [description]
   */
  public function get_plan_by_class($class_id)
  {
    $sql = "select * from {$this->db->dbprefix}o2o_class_plan where class_id=$class_id order by class_time asc";
    return $this->db->query($sql)->result_array();
  }

  
}
